export const checkAccount = (rule, value, callback)=> {
  if (!value) {
    callback(new Error("请输入账号"));
  } else if (!/^[a-zA-Z0-9\u4e00-\u9fa5]{3,6}$/.test(value)) { 
    callback(new Error("字母数字/3-6位"));
  } else {
    callback();
  }
};


export const checkPassword = (rule, value, callback)=> {
    if (!value) {
      callback(new Error("请输入密码"));
    } else if (!/^[a-zA-Z0-9]{3,6}$/.test(value)) { 
      callback(new Error("字母数字/3-6位"));
    } else {
      callback();
    }
  };
  